home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 October / Macworld (1998-10).dmg / Shareware World / Info / For Developers / MacZoop 1.8.4 / More Classes / File Classes / ZGIFFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  1.1 KB  |  58 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            MacZoop - "the framework for the rest of us"         
  5. *
  6. *
  7. *
  8. *            ZGIFFile.h            -- a file object that can open GIF images
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *            © 1996, Graham Cox
  15. *
  16. *
  17. *
  18. *
  19. *************************************************************************************************/
  20.  
  21.  
  22.  
  23. #pragma once
  24.  
  25. #ifndef __ZGIFFILE__
  26. #define    __ZGIFFILE__
  27.  
  28. #include    "ZFile.h"
  29. #include    <QDOffscreen.h>
  30.  
  31. class    ZGWorld;
  32.  
  33.  
  34.  
  35. class    ZGIFFile : public ZFile
  36. {
  37. public:
  38.  
  39.     ZGIFFile( const FSSpec& aSpec );
  40.  
  41.     virtual void    Read( ZGWorld*   aGWorld );
  42.     virtual void    Read( GWorldPtr* aGWorld );
  43. };
  44.  
  45.  
  46. // this is a file class that can read GIF (GIFf) image files. The Read() methods
  47. // above will either (a) modfy the GWorld of a ZGWorld object to suit the image. This is the
  48. // recommended method, or (b) return a "naked" GWorld appropriately built.
  49.  
  50. #define    strCantOpenData            980        /* Constants for gMessage */
  51. #define    strGIFNoMem                981        
  52. #define    strCantRead                982        
  53. #define    strInvalidGIFSig        983        
  54. #define    strCantSetFPos            984
  55. #define    strUnknownGIFBlock        985
  56. #define    strNoColorMap            986
  57.  
  58. #endif